home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / src / config.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-16  |  5.6 KB  |  106 lines

  1. /* @(#)src/config.c    1.15 9/16/92 09:10:20 */
  2.  
  3. /*
  4.  *    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
  5.  *    Copyright (C) 1992  Ronald S. Karr
  6.  * 
  7.  * See the file COPYING, distributed with smail, for restriction
  8.  * and warranty information.
  9.  */
  10.  
  11. /*
  12.  * config.c:
  13.  *    global variables which depend upon configuration
  14.  *
  15.  *    most of these values can be changed by the config file.
  16.  *
  17.  *    no external functions.
  18.  */
  19. #include <stdio.h>
  20. #include "defs.h"
  21. #include "smail.h"
  22. #include "config.h"
  23. #ifndef DEPEND
  24. # include "extern.h"
  25. #endif
  26.  
  27. char *visible_name = VISIBLE_NAME;    /* hostname used in outgoing addrs */
  28. char *visible_domains = VISIBLE_DOMAINS; /* domain used in outgoing headers */
  29. char *uucp_name = UUCP_NAME;        /* hostname used in !-routes */
  30. char *hostnames = HOSTNAMES;        /* list of other local host names */
  31. char *more_hostnames = MORE_HOSTNAMES;    /* additional list of hostnames */
  32. long max_message_size = MAX_MESSAGE_SIZE; /* max size of message body */
  33. char *grades = GRADES;            /* mapping of precedence to grade */
  34. int nobody_uid = NOBODY_UID;        /* user id for access permission */
  35. int nobody_gid = NOBODY_GID;        /* group id for access permission */
  36. char *nobody = NOBODY;            /* name of nobody user */
  37. char *log_fn = LOGFILE;            /* name of information log file */
  38. char *panic_fn = PANIC_LOG;        /* name of panic log file */
  39. char *cons_fn = CONSOLE;        /* name of console device file */
  40. char *spool_dirs = SPOOL_DIRS;        /* names of spooling directories */
  41. int spool_mode = SPOOL_MODE;        /* mode for spool files */
  42. int lock_mode = LOCK_MODE;        /* mode for lock files */
  43. int log_mode = LOG_MODE;        /* mode for system log files */
  44. int message_log_mode = MESSAGE_LOG_MODE; /* mode for per-message log files */
  45. int spool_grade = SPOOL_GRADE;        /* default spool grade character */
  46. int open_retries = OPEN_RETRIES;    /* max open retries on config files */
  47. int open_interval = OPEN_INTERVAL;    /* sleep between open retries  */
  48. char *config_file = CONFIG_FILE;    /* config file name */
  49. char *director_file = DIRECTOR_FILE;    /* directors file name */
  50. char *router_file = ROUTER_FILE;    /* routers file name */
  51. char *method_dir = METHOD_DIR;        /* directory for non-/ method files */
  52. char *transport_file = TRANSPORT_FILE;    /* transports file name */
  53. char *qualify_file = QUALIFY_FILE;      /* domain qualification file name */
  54. char *retry_file = RETRY_FILE;          /* address retry control file name */
  55. char *smail_lib_dir = SMAIL_LIB_DIR;    /* default config file directory */
  56. char *smail_util_dir = SMAIL_UTIL_DIR;    /* default smail utility directory */
  57. char *received_field = RECEIVED_FIELD;    /* Received: field string */
  58. char *message_id_field = MESSAGE_ID_FIELD; /* Message-Id: field string */
  59. char *date_field = DATE_FIELD;        /* Date: field string */
  60. char *from_field = FROM_FIELD;        /* From: field string */
  61. char *return_path_field = RETURN_PATH_FIELD; /* Return-Path: field string */
  62. char *smail = SMAIL;            /* location of the smail program */
  63. double max_load_ave = MAX_LOAD_AVE;    /* spool mail > this load agerage */
  64. char *trusted = TRUSTED;        /* : list of trusted users */
  65. char *trusted_groups = TRUSTED_GROUPS;    /* : list of trusted groups */
  66. unsigned message_bufsiz = MESSAGE_BUF_SIZE; /* size of message buffers */
  67. int hit_table_len = HIT_TABLE_LEN;    /* #entries in address hit table */
  68. int flock_mailbox = FLOCK_MAILBOX;    /* TRUE to use lock_fd_wait() macro */
  69. int fnlock_retries = FNLOCK_RETRIES;    /* retries for lock_file() creat */
  70. int fnlock_interval = FNLOCK_INTERVAL;    /* retry intervals for lock_file() */
  71. int fnlock_mode = FNLOCK_MODE;        /* mode for lock_file() lockfiles */
  72. int lock_by_name = LOCK_BY_NAME;    /* TRUE to use spool lockfiles */
  73. int queue_only = FALSE;            /* TRUE to default to -Q flag */
  74. int max_hop_count = MAX_HOP_COUNT;    /* fail if hop_count exceeds this */
  75. char *delivery_mode_string = DELIVERY_MODE; /* string naming delivery mode */
  76. char *smart_user = CONFIG_SMART_USER;    /* default user for smartuser */
  77. char *smart_path = CONFIG_SMART_PATH;    /* default path for smarthost */
  78. char *smart_transport = CONFIG_SMART_TRANSPORT;    /* transport for smarthost */
  79. char *second_config_file = SECOND_CONFIG_FILE; /* secondary config file */
  80. char *copying_file = COPYING_FILE;    /* pathname to COPYING file */
  81. int auto_mkdir = AUTO_MKDIR;        /* TRUE to auto create directories */
  82. int auto_mkdir_mode = AUTO_MKDIR_MODE;    /* the mode for auto directories */
  83. int require_configs = REQUIRE_CONFIGS;    /* TRUE to require config files */
  84. char *postmaster_address = POSTMASTER_ADDRESS; /* default addr of postmaster */
  85. char *smtp_banner = SMTP_BANNER;    /* smtp startup banner message */
  86. int smtp_debug = SMTP_DEBUG;        /* allow DEBUG command in SMTP */
  87. int smtp_accept_max = SMTP_ACCEPT_MAX;    /* max simultaneous SMTPs to accept */
  88. int smtp_accept_queue = SMTP_ACCEPT_QUEUE; /* simultaneous SMTPs to queueonly */
  89. char *sender_env_variable = SENDER_ENV_VARIABLE; /* env variable naming user */
  90. int switch_percent_and_bang = SWITCH_PERCENT_AND_BANG;
  91.                     /* switch precedence of % and ! */
  92. int error_copy_postmaster = ERROR_COPY_POSTMASTER;
  93.                     /* copy postmaster on errors */
  94. long retry_interval = RETRY_INTERVAL;    /* default delivery retry interval */
  95. long retry_duration = RETRY_DURATION;    /* default delivery retry duration */
  96. long host_lock_timeout = HOST_LOCK_TIMEOUT; /* timeout for host lock */
  97. long smtp_receive_command_timeout = SMTP_RECEIVE_COMMAND_TIMEOUT;
  98.                     /* timeout for smtp command reads */
  99. long smtp_receive_message_timeout = SMTP_RECEIVE_MESSAGE_TIMEOUT;
  100.                     /* timeout for smtp message */
  101. char *auth_domains = AUTH_DOMAINS;    /* authoritative domain list */
  102. #ifdef GLOTZNET
  103. int tzoffset = 0;            /* glotznet host timezone offset */
  104. int tznodst = 0;            /* glotznet does not have DST */
  105. #endif /* GLOTZNET */
  106.